home *** CD-ROM | disk | FTP | other *** search
- Path: krel.iea.com!usenet
- From: 73700.732@compuserve.com
- Newsgroups: comp.lang.c++
- Subject: Re: Problem with file read/write
- Date: Thu, 11 Jan 1996 04:30:51 -0800
- Organization: CompuTech
- Message-ID: <30F502FB.5BDA@compuserve.com>
- References: <1996Jan10.080808@msuvx2.memphis.edu>
- NNTP-Posting-Host: e13.iea.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (WinNT; I)
- CC: tangh@cc.memphis.edu
-
- your buffer s1 is too small. you are likely having memory
- corruption problems.
-
- your read reads 80 bytes into an 80 buffer then strcats a 45
- byte buffer to the end of it. if those are mostly full, you
- have a problem.
-
- simple solution is to make s1 have at least 129 bytes. the
- 80, 45 and 3 tabs plus room for a NULL
-
- good luck,
- scott...
-